package com.example.ssm.service;

import com.example.ssm.mapper.UserMapper;
import com.example.ssm.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhangdongsheng
 * @version 1.0
 * @describe
 * @date 2021/2/20 22:05
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    //登陆功能（通过账号和密码查询数据库进行登陆）
    public User findByUsernameAndPassword(String username, String password){
        return userMapper.findByUsernameAndPassword( username,password );
    }

}
